import express from 'express'
const router = express.Router();

import UserController from './../controller/user/UserController'


router.post('/register', UserController.regist);
router.post('/login', UserController.login);
router.post('/get', UserController.getUserInfo);
router.post('/del',UserController.delUserById);
router.post('/updateinfo',UserController.updateUserInfo);
router.post('/updatepsw',UserController.updatePassword);
router.post('/listpage',UserController.getUserListWithAdmin);
module.exports = router;